import { RoleName } from './permissions';
import { TBadge } from './profile';

export interface TLoginInfo {
  id: string;
  email: string;
  nickName: string;
  userName: string;
  avatar: string;
  phone: string;
  jwtKey: string;
  // 1正常 4注销
  status: number;
  // 增加管理员 type字段，type=20 表示Feed管理员，默认0正常用户
  type?: 0 | 1 | 2;
  /** 用户的徽章信息 */
  badges?: TBadge[] | null;
  artistWorlds?: { worldId: string; artistId: string }[];
  roles: RoleName;
  //用户签名
  signature?: string;
}
